package com.xxx.corejava.day1028;

public class Test6 {

    public static void main(String[] args) {

        for (int i = 1000; i <= 9999; i++) {

            boolean b=true;

            for (int j = 2; j <= 10; j++) {
                if((i%j) !=  (j-1)){
                    b=false;
                    break;
                }
            }

            if(true==b){
                System.out.println(i);
            }

        }

    }

}
